package cn.merlulin.monitor.domain.model.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Merlin
 * @version 1.0
 * @email 756151581@qq.com
 * @desc 监控流程设计实体
 * @date 2025/1/19 16:48
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MonitorFlowDesignEntity {

    private String monitorId;
    private List<Node> nodeList;
    private List<Link> linkList;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Node {
        private String monitorNodeId;

        private String loc;
    }

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Link {
        private String from;
        private String to;
        private String key;
        private String text;
    }


}
